package com.cet.lxf.reflection.test02;

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-07-28 17:23
 **/
public class Main01 {
    public static void main(String[] args) throws NoSuchFieldException {
        Field f = String.class.getDeclaredField("value");
        System.out.println(f.getName());
        System.out.println(f.getType());
        int m = f.getModifiers();
        System.out.println(Modifier.isFinal(m));
        System.out.println(Modifier.isPublic(m));
        System.out.println(Modifier.isProtected(m));
        System.out.println(Modifier.isPrivate(m));
        System.out.println(Modifier.isStatic(m));
    }
}
